
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.primecodegen.common.base;



import com.primecodegen.util.ComConstants;
import javax.faces.context.FacesContext;
import javax.servlet.http.HttpSession;
import org.primefaces.model.MenuModel;

/**
 *
 * @author Administrator
 */
public abstract class BaseBean implements IBaseBean {

       //        *****  Fields Area *****
     private HttpSession session;

       private final FacesContext context;
       private MenuModel breadCrumb;

       //            ***** Constructors Area *****
       public BaseBean () {
              context = FacesContext.getCurrentInstance ();
              session = ( HttpSession ) context.getExternalContext ().getSession (true);
//          sessionTbl = ( SessionTable ) session.getAttribute (ComConstants.BEAN_SESSION_NAME);
//              session.setMaxInactiveInterval (ComConstants.BEAN_SESSION_INTERVAL);

       }

       //              *****  Setters & Getters Area *****
       public HttpSession getSession () {
              return session;
       }

       public void setSession ( HttpSession session ) {
              this.session = session;
       }

    

       public FacesContext getContext () {
              return FacesContext.getCurrentInstance ();
       }

       

  
}
